import axios from 'axios'
import { getToken } from '@/utils/auth'

export function upload(file,id) {
  var data = new FormData()
  data.append('files', file)
  data.append('id', id)
  const config = {
    headers: { 'Authorization': getToken() }
  }
  return axios.post("/api/villageauthorize/apply", data, config)
}
